package org.darkforest.model;

import org.darkforest.enums.StateEnum;

import java.util.List;

public class EnumParamGiftDestributionVo  {
    private Integer paramId;

    private String paramType;

    private String paramKey;

    private String paramValue;

    private String paramDescription;

    private Integer paramState;

    private String createTime;

    private Integer createrId;

    private String createName;


    private List<GiftDistribution> giftDistributionList;

    public EnumParamGiftDestributionVo(){}

    /**
     * 根据类型查询
     * @param paramType
     */
    public EnumParamGiftDestributionVo(String paramType) {
        this.paramType = paramType;
    }

    /**
     * 根据类型&状态查询
     * @param paramType
     * @param paramState
     */
    public EnumParamGiftDestributionVo(String paramType, Integer paramState) {
        this.paramType = paramType;
        this.paramState = paramState;
    }

    public List<GiftDistribution> getGiftDistributionList() {
        return giftDistributionList;
    }

    public void setGiftDistributionList(List<GiftDistribution> giftDistributionList) {
        this.giftDistributionList = giftDistributionList;
    }

    public String getParamStateDes(){
       return StateEnum.getTextByValue(this.getParamState());
    }

    public Integer getParamId() {
        return paramId;
    }

    public void setParamId(Integer paramId) {
        this.paramId = paramId;
    }

    public String getParamType() {
        return paramType;
    }

    public void setParamType(String paramType) {
        this.paramType = paramType == null ? null : paramType.trim();
    }

    public String getParamKey() {
        return paramKey;
    }

    public void setParamKey(String paramKey) {
        this.paramKey = paramKey == null ? null : paramKey.trim();
    }

    public String getParamValue() {
        return paramValue;
    }

    public void setParamValue(String paramValue) {
        this.paramValue = paramValue == null ? null : paramValue.trim();
    }

    public String getParamDescription() {
        return paramDescription;
    }

    public void setParamDescription(String paramDescription) {
        this.paramDescription = paramDescription == null ? null : paramDescription.trim();
    }

    public Integer getParamState() {
        return paramState;
    }

    public void setParamState(Integer paramState) {
        this.paramState = paramState;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime == null ? null : createTime.trim();
    }

    public Integer getCreaterId() {
        return createrId;
    }

    public void setCreaterId(Integer createrId) {
        this.createrId = createrId;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName == null ? null : createName.trim();
    }
}